using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;

namespace TableViewTest.Pages;

public partial class UserViewModel : ObservableObject
{
    [ObservableProperty]
    public partial Guid ID { get; set; } = Guid.NewGuid();
    [ObservableProperty]
    public partial string Name { get; set; } = string.Empty;
    [ObservableProperty]
    public partial int Age { get; set; }
    [RelayCommand]
    public void AgeAddOne() => Age++;
    [RelayCommand]
    public void AgeMinusOne() => Age--;
}
